set(V8_DEFS_COMM )
set(V8_INCL_COMM            "../v8/include")
set(V8_LINK_LIB_NAME        "v8")
set(V8_LIBPATH_COMM_DEBUG   "../v8/tools/visual_studio/Debug/lib" "../v8" )
set(V8_LIBPATH_COMM_RELEASE "../v8/tools/visual_studio/Release/lib" "../v8")

find_library(V8_LINK_LIB_DEBUG    ${V8_LINK_LIB_NAME} HINTS ${V8_LIBPATH_COMM_DEBUG} NO_DEFAULT_PATH)
find_library(V8_LINK_LIB_RELEASE  ${V8_LINK_LIB_NAME} HINTS ${V8_LIBPATH_COMM_RELEASE} NO_DEFAULT_PATH)

if(NOT V8_LINK_LIB_DEBUG)
  find_library(V8_LINK_LIB_DEBUG    "v8_g" HINTS ${V8_LIBPATH_COMM_DEBUG} NO_DEFAULT_PATH)
  if(NOT V8_LINK_LIB_DEBUG)
    message(WARNING "the needed library not found, so debug won't work")
  endif(NOT V8_LINK_LIB_DEBUG)
endif(NOT V8_LINK_LIB_DEBUG)

if(NOT V8_LINK_LIB_RELEASE)
  message(WARNING "the needed library not found, so release won't work")
endif(NOT V8_LINK_LIB_RELEASE)

if( WIN32 ) 
  set(V8_ADDITIONA_LIBS "ws2_32" "winmm")
else( WIN32 )
  set(V8_ADDITIONA_LIBS "pthread")
endif( WIN32 )

# make the default link static runtime libs
include("${CMAKE_CURRENT_LIST_DIR}/lnkslibc.cmake")
